import React from 'react';
import { Link } from 'react-router-dom';
import './layout.scss';

export default class Index extends React.Component{
  constructor(props){
    super(props);
  }
  render(){
    return  <div className="layout-box">
      <Link to="/index">首页</Link>
      <Link to="/list">列表页</Link>
      <div>{this.props.children}</div>
    </div>
  }
}
